package PocketMoneyTestSuite
{
	import flexunit.framework.Assert;
	import flexunit.framework.Test;
	
	import org.flexunit.Assert;
	import org.flexunit.asserts.assertEquals;
	import org.flexunit.asserts.assertFalse;
	import org.flexunit.asserts.assertTrue;
	import org.flexunit.internals.runners.statements.Fail;
	import org.hamcrest.assertThat;
	
	import vivek.project.pocketmoney.admin.model.AdminDataModel;


	public class AdminModelTests
	{
		private static var adminModel:AdminDataModel;

		[Before]
		public function setUp():void
		{

		}

		[After]
		public function tearDown():void
		{
		}

		[BeforeClass]
		public static function setUpBeforeClass():void
		{
			adminModel=AdminDataModel.getInstance();
		}

		[AfterClass]
		public static function tearDownAfterClass():void
		{
			adminModel=null;
		}

		[Test]
		public function addNewCurrency():void
		{
			var currencyObject:Object=new Object();
			currencyObject.currencyName="Test Currency";
			currencyObject.exRate="1.0";
			currencyObject.currencySymbol="$";
			var returnValue=adminModel.addCurrency(currencyObject);
			assertEquals(1, returnValue);
		}

		[Test]
		public function getCurrencyDetails():void
		{
			var currencyObject=adminModel.getCurrencyDetailsByName("Test Currency");
			assertEquals(currencyObject.cu_name, "Test Currency");
			currencyObject=adminModel.getCurrencyDetailsByName("Test Currency");
			assertEquals(currencyObject.cu_name, "Test Currency");
		}


		[Test]
		public function addNewUser():void
		{
			

		}

		[Test]
		public function setDefaultUser():void
		{

		}

		[Test]
		public function getUserDetails():void
		{

		}


		[Test]
		public function addNewUserAccount():void
		{

		}

		[Test]
		public function checkUserAccountDetails():void
		{

		}




		[Test]
		public function checkCurrency():void
		{
			var obj:Object=new Object();
			obj.userid=1;
			obj.categoryname="TEST";
			obj.categorydesc="TESTDESC";
			obj.expensetype=1;
			obj.mastercategory=1;
			assertEquals(1, 1);
		}


	}
}